package com.example.oneSpringMVC.mapper;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface EmployeeRoleMapper {
    /**
     * 新增员工权限
     * @param id
     * @param roleId
     */
    void addRole(@Param("id")Long id,@Param("roleId") Integer roleId);

    /**
     * 全部删完，之后重新添加权限
     * @param id
     */
    @Delete("delete from rbac.employee_role where employee_id = #{id}")
    void deleteRole(Long id);
}
